package com.netease.task.controller.comm;


import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;



@Controller
@RequestMapping(value = "error")
public class myErrorController implements ErrorController {

    @Override
    public String getErrorPath() {
        return "myError";
    }

    @RequestMapping
    public String error() {
        return getErrorPath();
    }

}
